use "d:/Users/Andrey/Dropbox/data/fcpa/replication/country level final.dta", clear
cd d:/Users/Andrey/Dropbox/data/fcpa/replication
log using countrylevelapp, text replace
*** Table A1 ****
xtlogit fcpaact PctAgreeUS if ccode !=2 , fe
		estimates store m16

xtlogit fcpaact c.s_un_atop  if ccode !=2 , fe
		estimates store m17

xtlogit fcpaact   c.leconaidfrac  if ccode !=2 , fe
		estimates store m18

xtlogit fcpaact  c.lmilaidfrac if ccode !=2 , fe 
		estimates store m19

xtlogit fcpaact c.larmsfrac   if ccode !=2 , fe
		estimates store m20
		
xtreg fcpaact   PctAgreeUS  i.year  if ccode !=2 ,fe cluster(ccode)  
		estimates store m21
		
xtreg fcpaact   s_un_atop   i.year if ccode !=2 , fe cluster(ccode) 
    	estimates store m22

xtreg fcpaact   leconaidfrac  i.year  if ccode !=2 , fe cluster(ccode)  
	estimates store m23
	
xtreg fcpaact   lmilaidfrac    i.year  if ccode !=2 , fe cluster(ccode) 
	estimates store m24

xtreg fcpaact larmsfrac   i.year if ccode !=2 ,fe cluster(ccode)  
		estimates store m25

**** Table A2 ****

xtlogit fcpaact polity2 mou fcpasum2 PctAgreeUS c.lusfdi  lgdppc lustrade CCEST lrents  if  ccode !=2 , fe
		estimates store m26

xtlogit fcpaact polity2 mou fcpasum2 c.s_un_atop c.lusfdi  lgdppc lustrade CCEST lrents  if  ccode !=2 , fe
		estimates store m27

xtlogit fcpaact polity2 mou fcpasum2  c.leconaidfrac c.lusfdi  lgdppc lustrade CCEST lrents if  ccode !=2 , fe
		estimates store m28

xtlogit fcpaact polity2 mou fcpasum2 c.lmilaidfrac c.lusfdi  lgdppc lustrade CCEST lrents  if  ccode !=2 , fe 
		estimates store m29

xtlogit fcpaact polity2 mou fcpasum2 c.larmsfrac c.lusfdi  lgdppc lustrade CCEST lrents   if  ccode !=2 , fe
		estimates store m30

xtreg fcpaact polity2 fcpasum2 mou  PctAgreeUS lusfdi  lgdppc lustrade CCEST lrents  i.year  if  ccode !=2 ,fe cluster(ccode)  
		estimates store m31
		
xtreg fcpaact polity2 fcpasum2 mou  s_un_atop lusfdi  lgdppc lustrade CCEST lrents i.year if  ccode !=2 , fe cluster(ccode) 
    	estimates store m32
		
xtreg fcpaact polity2 fcpasum2 mou  leconaidfrac  lusfdi  lgdppc lustrade CCEST lrents i.year  if  ccode !=2 , fe cluster(ccode)  
		estimates store m33
		
xtreg fcpaact polity2 fcpasum2 mou  lmilaidfrac  lusfdi  lgdppc lustrade CCEST lrents  i.year  if  ccode !=2 , fe cluster(ccode) 
		estimates store m34

xtreg fcpaact polity2 fcpasum2 mou  larmsfrac lusfdi  lgdppc lustrade CCEST lrents i.year if  ccode !=2 ,fe cluster(ccode)  
		estimates store m35
		

**** Table A5 ***
		
zinb debarsum fcpasum2 polity2 mou  PctAgreeUS c.lusfdi  lgdppc ltrade CCEST lrents  if year>2009 &ccode!=2, difficult inflate( polity2 mou PctAgreeUS  c.lusfdi  lgdppc ltrade CCEST lrents fcpasum2) cluster(ccode)
		estimates store m36
		
zinb debarsum fcpasum2 polity2 mou   s_un_atop c.lusfdi  lgdppc ltrade CCEST lrents  if year>2009 &ccode!=2, difficult inflate( polity2 mou  s_un_atop  c.lusfdi  lgdppc ltrade CCEST lrents fcpasum2) cluster(ccode) 
		estimates store m37

zinb debarsum fcpasum2 polity2 mou  c.lmilaidfrac c.lusfdi  lgdppc ltrade CCEST lrents  if year>2009 &ccode!=2, difficult inflate( polity2 mou c.lmilaidfrac  c.lusfdi  lgdppc ltrade CCEST lrents fcpasum2) cluster(ccode)
		estimates store m38
		
zinb debarsum fcpasum2 polity2 mou leconaidfrac  c.lusfdi  lgdppc ltrade CCEST lrents  if year>2009 &ccode!=2, difficult inflate( polity2 mou leconaidfrac   c.lusfdi  lgdppc ltrade CCEST lrents  fcpasum2) cluster(ccode)
		estimates store m39

zinb debarsum fcpasum2 polity2 mou  c.larmsfrac c.lusfdi  lgdppc ltrade CCEST lrents if year>2009 &ccode!=2, difficult inflate( polity2 mou c.larmsfrac  c.lusfdi  lgdppc ltrade CCEST lrents fcpasum2) cluster(ccode)
		estimates store m40

log close